package com.aaa.rent.service.impl;

import com.aaa.entity.Car;
import com.aaa.rent.dao.CarDao;
import com.aaa.rent.dao.CarVoDao;
import com.aaa.rent.service.CarService;
import com.aaa.rent.service.CarVoService;
import com.aaa.vo.CarVo;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author wys
 * @version 1.0
 * @date 2023/3/2 14:25
 */
@Service
@RequestMapping("rent/api/CarVoController")
public class CarVoServiceImpl extends ServiceImpl<CarVoDao,CarVo> implements CarVoService {
    @Autowired
    private CarVoDao carVoDao;


    @Override
    public Result delete(Integer id) {
        int delete = carVoDao.delete(id);
        return new Result(200,"删除成功",delete);
    }

}
